package com.example.course.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 登录数据传输对象
 *
 * @author Jasmine-drs
 * @date 2025/4/23 10:30
 */
@Data
@ApiModel(value = "LoginDTO", description = "登录数据传输对象")
public class LoginDTO {

	@NotBlank(message = "学号不能为空")
	@Size(max = 11, message = "学号长度不能超过11个字符")
	@ApiModelProperty(value = "学号", required = true)
	private String studentNum;

	@NotBlank(message = "密码不能为空")
	@ApiModelProperty(value = "密码", required = true)
	private String password;
} 